//
//  RootViewController.h
//  NewsReader
//
//  Created by blacksun on 10-10-17.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ItemListController.h"
#import "NewsReaderAppDelegate.h"
#import "HttpUtil.h"
#import "SectionViewController.h"
#import "ModelParseUtil.h"
#import "AddSectionController.h"

@interface RootViewController : UIViewController<UIScrollViewDelegate> {
	NSMutableArray *sections;
	UIScrollView *scrollView;
	NSMutableArray *sectionViewControllers;
	NSMutableArray *needDeleteSections;
	NSMutableArray *needDeleteControllers;
	UIPageControl *pagecontrol;
	NSMutableArray *needAddSections;
	UIImageView *settingImageView;
	UIActivityIndicatorView *activityView;
	NSMutableArray *theHttpUtils;
}
@property (nonatomic, retain) NSMutableArray *theHttpUtils;
@property (nonatomic, retain) IBOutlet UIActivityIndicatorView *activityView;
@property (nonatomic, retain) IBOutlet UIImageView *settingImageView;
@property (nonatomic, retain) NSMutableArray *sections;
@property (nonatomic, retain) IBOutlet UIScrollView *scrollView;
@property (nonatomic, retain) IBOutlet UIPageControl *pagecontrol;
@property (nonatomic, retain) NSMutableArray *sectionViewControllers;
@property (nonatomic, retain) NSMutableArray *needDeleteSections;
@property (nonatomic, retain) NSMutableArray *needDeleteControllers;
@property (nonatomic, retain) NSMutableArray *needAddSections;
- (void)setUpSectionView:(NSArray*)theSections;
-(void)updateSections:(NSData *)response;
-(IBAction)didClickSetting:(id)sender;

@end
